<?php
/* @var $this ReplyController */
/* @var $model Reply */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'reply-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
	<?php echo $form->errorSummary($model->data); ?>

	<div class="row">
		<label for="Reply_reply_msgtype" class="required">
			回复的消息类别：消息
		</label>
		<?php echo $form->HiddenField($model,'reply_msgtype',array('size'=>5,'maxlength'=>5,'readonly'=>'1',)); ?>
		<?php echo $form->error($model,'reply_msgtype'); ?>
	</div>
	
	<div class="row">
		<label for="Reply_content" class="required">
			回复的消息内容<span class="required">*</span>
		</label>
		<?php echo CHtml::textArea('Reply[reply_data][content]'
			, CArr::ele('content', $model->reply_arr)
			, array('size'=>500,'maxlength'=>500)); ?>
	</div>

	<div class="row buttons">
		<label for="Reply_reply_msgtype" class="required">回复的消息内容<span class="required">*</span></label>
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->